<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('商户结算账户列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>编号标识：</label>
                                <input type="text" name="daMarker"/>
                            </li>
                            <li>
                                <label>账户类型 ：</label>
                                <input type="text" name="nature"/>
                            </li>
                            <li>
                                <label>底图：</label>
                                <input type="text" name="bottomPic"/>
                            </li>
                            <li class="select-time">
                                <label>添加时间：</label>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCreatedate]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endCreatedate]"/>
                            </li>
                            <li>
                                <label>备注：</label>
                                <input type="text" name="note"/>
                            </li>
                            <li>
                                <label>起始结算金额：</label>
                                <input type="text" name="acmoney"/>
                            </li>
                            <li>
                                <label>预留手机号：</label>
                                <input type="text" name="resphone"/>
                            </li>
                            <li>
                                <label>结算周期 0:D0 1:T1：</label>
                                <input type="text" name="settleCycle"/>
                            </li>
                            <li>
                                <label>总行名称：</label>
                                <input type="text" name="bankHeadname"/>
                            </li>
                            <li>
                                <label>账户开户地(省市代号)：</label>
                                <input type="text" name="bankAddress"/>
                            </li>
                            <li>
                                <label>结算人身份证号(对私必填)：</label>
                                <input type="text" name="screenIdnum"/>
                            </li>
                            <li>
                                <label>展示身份证号：</label>
                                <input type="text" name="showScreenidnum"/>
                            </li>
                            <li>
                                <label>展示手机号：</label>
                                <input type="text" name="showResphone"/>
                            </li>
                            <li>
                                <label>展示结算账户号：</label>
                                <input type="text" name="showScreennum"/>
                            </li>
                            <li>
                                <label>用户识别卡logo标识：</label>
                                <input type="text" name="picno"/>
                            </li>
                            <li>
                                <label>省市名称，英文逗号隔开：</label>
                                <input type="text" name="areaName"/>
                            </li>
                            <li>
                                <label>对应(服务商、商户)编号：</label>
                                <input type="text" name="seqId"/>
                            </li>
                            <li>
                                <label>支付系统行号：</label>
                                <input type="text" name="bankNum"/>
                            </li>
                            <li>
                                <label>开户行账号：</label>
                                <input type="text" name="screenNum"/>
                            </li>
                            <li>
                                <label>开户人名称：</label>
                                <input type="text" name="screenName"/>
                            </li>
                            <li>
                                <label>开户行名称[账户所属支行]：</label>
                                <input type="text" name="bankName"/>
                            </li>
                            <li>
                                <label>添加人：</label>
                                <input type="text" name="createman"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="accounts:accounts:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="accounts:accounts:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="accounts:accounts:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="accounts:accounts:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('accounts:accounts:edit')}]];
        var removeFlag = [[${@permission.hasPermi('accounts:accounts:remove')}]];
        var prefix = ctx + "accounts/accounts";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "商户结算账户",
                clickToSelect:true,
                columns: [{
                    checkbox: true
                },
                {
                    field: 'daMarker',
                    title: '编号标识'
                },
                {
                    field: 'nature',
                    title: '账户类型 '
                },
                {
                    field: 'bottomPic',
                    title: '底图'
                },
                {
                    field: 'createdate',
                    title: '添加时间'
                },
                {
                    field: 'note',
                    title: '备注'
                },
                {
                    field: 'acmoney',
                    title: '起始结算金额'
                },
                {
                    field: 'resphone',
                    title: '预留手机号'
                },
                {
                    field: 'settleCycle',
                    title: '结算周期 0:D0 1:T1'
                },
                {
                    field: 'bankHeadname',
                    title: '总行名称'
                },
                {
                    field: 'bankAddress',
                    title: '账户开户地(省市代号)'
                },
                {
                    field: 'screenIdnum',
                    title: '结算人身份证号(对私必填)'
                },
                {
                    field: 'showScreenidnum',
                    title: '展示身份证号'
                },
                {
                    field: 'showResphone',
                    title: '展示手机号'
                },
                {
                    field: 'showScreennum',
                    title: '展示结算账户号'
                },
                {
                    field: 'picno',
                    title: '用户识别卡logo标识'
                },
                {
                    field: 'areaName',
                    title: '省市名称，英文逗号隔开'
                },
                {
                    field: 'seqId',
                    title: '对应(服务商、商户)编号'
                },
                {
                    field: 'bankNum',
                    title: '支付系统行号'
                },
                {
                    field: 'screenNum',
                    title: '开户行账号'
                },
                {
                    field: 'screenName',
                    title: '开户人名称'
                },
                {
                    field: 'bankName',
                    title: '开户行名称[账户所属支行]'
                },
                {
                    field: 'createman',
                    title: '添加人'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.daMarker + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.daMarker + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>